package me.ezitku.base.extensions

/**
 * Created by yurqi on 2017/6/28.
 */
fun String.NotNullOrNotEmpty(action: (text: String) -> Unit) {
    if (!this.isNullOrEmpty()) {
        action.invoke(this)
    }
}

fun CharSequence.NotNullOrNotEmpty(action: (text: String) -> Unit) {
    toString().NotNullOrNotEmpty(action)
}

